home *** CD-ROM | disk | FTP | other *** search
/ El Mac 7 / El Mac 7.iso / Infotenimiento / Makers of the 20th Century / Data / RANDOM.DIR / 00053.ls < prev    next >
Encoding:
Text File  |  1996-03-11  |  2.8 KB  |  111 lines

  1. on startMovie
  2.   global Choose, flag, MoveOrange, ChangePict
  3.   set Choose to 0
  4.   set flag to 1
  5.   set MoveOrange to 1
  6.   set ChangePict to 1
  7.   put " " into field "namesText"
  8.   put EMPTY into field "numfield"
  9.   preLoadCast(14, 36)
  10.   preLoadCast(56, 83)
  11. end
  12.  
  13. on changeCasts
  14.   global flag, MoveOrange, ChangePict
  15.   set the castNum of sprite 11 to random(7) + 6
  16.   if the castNum of sprite 14 < 67 then
  17.     set the castNum of sprite 14 to the number of cast the castNum of sprite 14 + 1
  18.   else
  19.     set the castNum of sprite 14 to 56
  20.   end if
  21.   if the castNum of sprite 15 < 67 then
  22.     set the castNum of sprite 15 to the number of cast the castNum of sprite 15 + 1
  23.   else
  24.     set the castNum of sprite 15 to 56
  25.   end if
  26.   if flag = 1 then
  27.     if the castNum of sprite 12 < 36 then
  28.       set the castNum of sprite 12 to the number of cast the castNum of sprite 12 + 1
  29.     else
  30.       set flag to 0
  31.     end if
  32.   else
  33.     if the castNum of sprite 12 > 14 then
  34.       set the castNum of sprite 12 to the number of cast the castNum of sprite 12 - 1
  35.     else
  36.       set flag to 1
  37.     end if
  38.   end if
  39.   set the castNum of sprite 13 to the number of cast the castNum of sprite 12
  40.   if MoveOrange = 1 then
  41.     if the castNum of sprite 2 < 83 then
  42.       set the castNum of sprite 2 to the castNum of sprite 2 + 1
  43.     else
  44.       set the castNum of sprite 2 to 68
  45.     end if
  46.     set MoveOrange to 0
  47.   else
  48.     set MoveOrange to 1
  49.   end if
  50.   if ChangePict = 30 then
  51.     set the castNum of sprite 3 to random(183) + 84
  52.     set ChangePict to 0
  53.   else
  54.     set ChangePict to ChangePict + 1
  55.   end if
  56.   updateStage()
  57. end
  58.  
  59. on rollOvers
  60.   if rollOver(7) then
  61.     roll(7)
  62.   else
  63.     unRoll(7)
  64.   end if
  65.   if rollOver(9) then
  66.     roll(9)
  67.     unRoll(7)
  68.   else
  69.     unRoll(9)
  70.   end if
  71.   if rollOver(10) then
  72.     roll(10)
  73.   else
  74.     unRoll(10)
  75.   end if
  76.   updateStage()
  77. end
  78.  
  79. on roll theRoll
  80.   if not (the name of cast the castNum of sprite theRoll contains "down") then
  81.     set the castNum of sprite theRoll to the castNum of sprite theRoll + 1
  82.   end if
  83. end
  84.  
  85. on unRoll theRoll
  86.   if the name of cast the castNum of sprite theRoll contains "down" then
  87.     set the castNum of sprite theRoll to the castNum of sprite theRoll - 1
  88.   end if
  89. end
  90.  
  91. on GoDatabase num
  92.   global gMakerNum, ItemDel
  93.   set temp to "body,power,discover,senses,mind,design"
  94.   set name to word the number of words in the name of cast num of the name of cast num
  95.   set num to Bsearch(name, "numList")
  96.   set num2 to item 2 of line num of field "numList"
  97.   set file to value(item 3 of line num of field "numList")
  98.   set gMakerNum to num2
  99.   put string("MAKERS" & ItemDel & "DATABASE" & ItemDel & string(item file of temp & ".dir"))
  100.   go("database", string("MAKERS" & ItemDel & "DATABASE" & ItemDel & string(item file of temp & ".dir")))
  101. end
  102.  
  103. on disposeRearWindow
  104.   global rwObj
  105.   if the machineType <> 256 then
  106.     if objectp(rwObj) then
  107.       rwObj(mdispose)
  108.     end if
  109.   end if
  110. end
  111.